package com.kotiln.lgc.lib_base.service

import android.app.IntentService
import android.content.Intent
import com.imooc.lib_voice.words.WordsTools
import com.kotiln.lgc.lib_base.helper.ARouterHelper
import com.kotiln.lgc.lib_base.helper.NotificationHelper
import com.kotiln.lgc.lib_base.helper.SoundPoolHelper
import com.kotiln.lgc.lib_base.helper.`fun`.AppHelper
import com.kotiln.lgc.lib_base.util.LogUtil
import com.kotiln.lgc.lib_base.util.SpUtil
import com.kotiln.lgc.lib_voice.manager.VoiceManager

/**
 *@fileName InitService
 *@date2021/1/18  15:11
 *@author InitService$
 *@describe TODO
 *@desc 初始化服务,适用于短任务
 */
class InitService : IntentService(InitService::class.simpleName){

    override fun onCreate() {
        super.onCreate()
        LogUtil.i("初始化开始")
    }


    override fun onHandleIntent(p0: Intent?) {
        LogUtil.i("执行初始化操作")
//        SpUtil.initSpUitl(this)
//        NotificationHelper.initHelper(this)
//        VoiceManager.initManager(this)
        WordsTools.initTools(this)
        SoundPoolHelper.init(this)
        AppHelper.initHelper(this)
    }

    override fun onDestroy() {
        super.onDestroy()
        LogUtil.i("初始化完成")
    }


}